﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdministratorSite.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ListAllBooking
</asp:Content>
<script runat="server">
    public void Page_Load()
    {
        GridViewSearchResult.DataSource = ViewData["searchResult"];
        GridViewSearchResult.DataBind();
        foreach (GridViewRow gvr in GridViewSearchResult.Rows)
        {
            ((HyperLink)gvr.Cells[0].Controls[0]).NavigateUrl = "~/AdminMain/ViewDetails?type=" + ViewData["resultType"] +
                                   "&key1="+ gvr.Cells[1].Text.ToString()+
                                   "&key2="+ gvr.Cells[2].Text.ToString()+
                                   "&key3="+ gvr.Cells[3].Text.ToString();
        }
    }

    
</script>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server" style="width: 1155px">
    <asp:Panel ID="Panel2" runat="server" Height="61px" 
        style="font-size: xx-large; font-weight: 700; font-family: Calibri">
        <b>List All Client</b></asp:Panel>
     <asp:GridView ID="GridViewSearchResult" runat="server" CellPadding="5" 
        ForeColor="#333333" GridLines="None" BorderStyle="Solid" 
        BorderWidth="1px" CellSpacing="7" ShowFooter="True"
                        style="margin-left: 59px">
            <AlternatingRowStyle BackColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
            <Columns>
                <asp:HyperLinkField Text="View Details" />
           </Columns>
            
        </asp:GridView>
</form>
</asp:Content>
